take array input from user in c